import React from 'react'

class LickesButton extends React.Component {
  constructor(props) {
    super(props)
    this.state = {
      likes: 33
    }
  }
  add() {
    this.setState({
      likes: ++this.state.likes
    })
  }
  render() {
    return (
      <div>
        <button
          onClick={() => { this.add() }}
        >
          👍{this.state.likes}</button>
      </div>
    )
  }
}
export default LickesButton